"""
@FileName：1下载图片.py
@Author：lmz
@Time：2021/5/21 21:05
用requets库下载百度logo图片
"""
import requests
url = 'https://t7.baidu.com/it/u=1956604245,3662848045&fm=193&f=GIF'
resp = requests.get(url)
with open('hello/baidu.jpg','wb') as f:
    f.write(resp.content)